package cn.gov.escience.service;

import java.util.List;

import cn.gov.escience.except.UserNotFound;
import cn.gov.escience.model.User;

public interface UserService {

	public void addUser(User user);

	public void updateUser(User user) throws UserNotFound;

	public void deleteUser(int id) throws UserNotFound;

	public User getUser(int id);

	public List<User> getUsers();

	public List<User> getUsersByNameCondition(String name);

	public List<User> getUserByPassword(String password);

}
